package com.cy.ppj.model.ao.manager;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

import com.cy.ppj.comm.constant.RegexContants;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 管理员修改密码
 * @author: tanyilin
 * @create: 2018年8月10日 下午2:57:34
 */
@Data
@ApiModel("管理员修改密码")
public class ManagerUpdatePasswordAO {

	@ApiModelProperty(value = "旧密码", required = true)
	@NotEmpty(message = "旧密码不能为空")
	private String oldPassword;
	
	@ApiModelProperty(value = "新密码", required = true)
	@NotEmpty(message = "新密码不能为空")
	@Pattern(regexp = RegexContants.PASSWORD, message = "密码格式不正确")
	private String newPassword;
}
